package zhiziyibai.simpleweather.util;

import okhttp3.OkHttpClient;
import okhttp3.Request;

/**
 * Created by 执子一白 on 2017/5/22.
 */

public class HttpUtil {
    //传入地址 注册回调处理服务器数据
    public static void sendOkHttpRequest(String address,okhttp3.Callback callback)
    {
        OkHttpClient client=new OkHttpClient();
        Request request =new Request.Builder().url(address).build();
        client.newCall(request).enqueue(callback);
    }
}
